<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<body>
	<form id="logininfo">
		账号：<input type="text" name="userName" id="userName"/>
		密码：<input type="text" name="passWord" id="password"/>
		账号231：<input type="text" name="userName" id="userName"/>
		密码12321：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码21321：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码：<input type="text" name="passWord" id="password"/>
		账号wqe：<input type="text" name="userName" id="userName"/>
		密码：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码qwe：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码qweq：<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码：eqwe<input type="text" name="passWord" id="password"/>
		账号：<input type="text" name="userName" id="userName"/>
		密码qweqw：<input type="text" name="passWord" id="password"/>
		账号eqwe：<input type="text" name="userName" id="userName"/>
		密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>
		密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>vvvv密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/><br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>vvvv密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/><br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>vvvv密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/><br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>vvvv密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>密码qwe：<input type="text" name="passWord" id="password"/>
		<br/>
	</form>
	<button onclick="login()">提交</button>
	<button onclick="add()">ADD</button>
	<script type="text/javascript">
	function login(){//serialize
		var n = $('#userName').val();
		var p = $('#passWord').val();
		
		alert(n+' - '+p);
		var info = $('#logininfo').serialize();
		$.submitAjax('user/'+n+'/'+p,'GET',info,function(data){
			alert(data);
		});
		/*$.get('user/'+n+'/'+p+'',{info},function(data){
			alert(data);
		});*/
	}

	function add(){
		var info = $('#logininfo').serialize();
		$.submitAjax('user','POST',info,function(data){
			alert(data);
		});
	}
</script>
</body>
